﻿using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using Controls;
using BlogEngine.Core;

public partial class StandardSite : System.Web.UI.MasterPage
{
  protected void Page_Load(object sender, EventArgs e)
  {
		if (Page.User.Identity.IsAuthenticated)
		{
            content.Style["float"] = "left";
            content.Style["width"] = "70%";

            sidepanel.Style["float"] = "right";
            sidepanel.Style["width"] = "28%";
            sidepanel.Controls.Add(new WidgetZone());
            sidepanel.Visible = true;

		}
		else
		{
            sidepanel.Visible = false;
            content.Style["float"] = "left";
            content.Style["width"] = "100%";

	
        }


  }

}
